//
//  GameState.swift
//  ArRich
//
//  Created by Apple on 2018/1/4.
//  Copyright © 2018年 Apple. All rights reserved.
//

import Foundation
import SceneKit

struct District {
    var name: String?
    var buildPosition: SCNVector3?
    var chess1Position: SCNVector3?
    var chess2Position: SCNVector3?
    var owner: String = ""
    var currentPlayer:String = ""
    var level: Int = 0
    
    var allowBuilding: Bool?
    var buyCost: Int?
    var buildCost: Int?
    var payCostLv0: Int?
    var payCostLv1: Int?
    var payCostLv2: Int?
}

class PlaceInfo {
    
    var placeList:[String:[String:Any]] = [
        "place0":["name":"北京","buildPositionX":Float(0.183),"buildPositionZ":Float(0.154),"owner":"","buyCost":2000 , "chessPositionX":Float(0.215), "chessPositionZ": Float(-0.215)],
        "place1":["name":"北京","buildPositionX":Float(0.183),"buildPositionZ":Float(0.154),"owner":"","buyCost":2000 , "chessPositionX":Float(0.215), "chessPositionZ": Float(-0.215)],
        "place2":["name":"北京","buildPositionX":Float(0.183),"buildPositionZ":Float(0.154),"owner":"","buyCost":2000 , "chessPositionX":Float(0.215), "chessPositionZ": Float(-0.215)],
        "place3":["name":"北京","buildPositionX":Float(0.183),"buildPositionZ":Float(0.154),"owner":"","buyCost":2000 , "chessPositionX":Float(0.215), "chessPositionZ": Float(-0.215)],
        "place4":["name":"北京","buildPositionX":Float(0.183),"buildPositionZ":Float(0.154),"owner":"","buyCost":2000 , "chessPositionX":Float(0.215), "chessPositionZ": Float(-0.215)],
        "place5":["name":"北京","buildPositionX":Float(0.183),"buildPositionZ":Float(0.154),"owner":"","buyCost":2000 , "chessPositionX":Float(0.215), "chessPositionZ": Float(-0.215)],
//
//        "place1":["name":"北京","buildPositionX":0.18,"buildPositionZ":0.15,"owner":"","buyCost":2000 , "chessPositionX":0.21, "chessPositionZ": -0.21],
//        "place2":["name":"北京","buildPositionX":0.18,"buildPositionZ":0.15,"owner":"","buyCost":2000 , "chessPositionX":0.21, "chessPositionZ": -0.21],
//        "place3":["name":"北京","buildPositionX":0.18,"buildPositionZ":0.15,"owner":"","buyCost":2000 , "chessPositionX":0.21, "chessPositionZ": -0.21],
//        "place4":["name":"北京","buildPositionX":0.18,"buildPositionZ":0.15,"owner":"","buyCost":2000 , "chessPositionX":0.21, "chessPositionZ": -0.21],
//        "place5":["name":"北京","buildPositionX":0.18,"buildPositionZ":0.15,"owner":"","buyCost":2000 , "chessPositionX":0.21, "chessPositionZ": -0.21],
//        "place":["name":"北京","buildPositionX":0.18,"buildPositionZ":0.15,"owner":"","buyCost":2000 , "chessPositionX":0.21, "chessPositionZ": -0.21],
    ]
//        "place1":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(0.183 , 0.0 , 0.215)],
//
//        "place2":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(0.154 , 0.0 , 0.215)],
//        "place3":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(0.1155 , 0.0 , 0.215)],
//        "place4":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(0.0765 , 0.0 , 0.215)],
//        "place5":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(0.03875 , 0.0 , 0.215)],
//        "place6":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(0.0 , 0.0 , 0.215)],
//        "place7":["name":"北京","buildPosition":SCNVector3(0.183, 0.0, 0.154),"owner":"","buyCost":2000 , "chessPosition":SCNVector3(-0.03875 , 0.0 , 0.215)],
//        "place2":["name":"上海","buildPosition":SCNVector3(0.136, 0.0, 0.17),"owner":"","buyCost":3000],
//        "place3":["name":"广州","buildPosition":SCNVector3(0.102, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place4":["name":"天津","buildPosition":SCNVector3(0.068, 0.0, 0.17),"owner":"","buyCost":5000],
//        "place5":["name":"武汉","buildPosition":SCNVector3(0.034, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place6":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":6000],
//        "place7":["name":"大连","buildPosition":SCNVector3(-0.034, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place8":["name":"沈阳","buildPosition":SCNVector3(-0.068, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place9":["name":"哈尔滨","buildPosition":SCNVector3(-0.102, 0.0, 0.17),"owner":"","buyCost":7000],
//        "place10":["name":"成都","buildPosition":SCNVector3(-0.136, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place11":["name":"重庆","buildPosition":SCNVector3(-0.17, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place12":["name":"杭州","buildPosition":SCNVector3(-0.17, 0.0, 0.136),"owner":"","buyCost":2000],
//        "place13":["name":"南京","buildPosition":SCNVector3(-0.17, 0.0, 0.102),"owner":"","buyCost":2000],
//        "place14":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place15":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place16":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place17":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place18":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place19":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place20":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place21":["name":"重庆","buildPosition":SCNVector3(-0.17, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place22":["name":"杭州","buildPosition":SCNVector3(-0.17, 0.0, 0.136),"owner":"","buyCost":2000],
//        "place23":["name":"南京","buildPosition":SCNVector3(-0.17, 0.0, 0.102),"owner":"","buyCost":2000],
//        "place24":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place25":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place26":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place27":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place28":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place29":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place30":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place31":["name":"重庆","buildPosition":SCNVector3(-0.17, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place32":["name":"杭州","buildPosition":SCNVector3(-0.17, 0.0, 0.136),"owner":"","buyCost":2000],
//        "place33":["name":"南京","buildPosition":SCNVector3(-0.17, 0.0, 0.102),"owner":"","buyCost":2000],
//        "place34":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place35":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place36":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place37":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place38":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place39":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000],
//        "place0":["name":"长春","buildPosition":SCNVector3(0.0, 0.0, 0.17),"owner":"","buyCost":2000]
//    ]

        

//        "place7":["name":"大连","buildPosition":["x":-0.034,"y":0.03,"z":0.17],"owner":"","buildCost":2000],
//        "place8":["name":"Beijing","buildPosition":["x":-0.068,"y":0.03,"z":0.17],"owner":"","buildCost":2000],
//        "place9":["name":"Beijing","buildPosition":["x":0.068,"y":0.03,"z":0.17],"owner":"","buildCost":2000],
//        "place10":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""],
//        "place11":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""],
//        "place12":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""],
//        "place13":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""],
//        "place14":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""],
//        "place15":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""],
//        "place16":["name":"Beijing","buildPosition":"SCNVector3(0.17,0.03,0.17)","owner":""]
    
    
    
}

